package xcmg.device.dao.mapper.split;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.split.SplitDO;
import xcmg.device.service.vo.split.SplitVO;

import java.util.List;

@Mapper
public interface SplitMapper {
    int deleteByPrimaryKey(String id);

    int insert(SplitDO record);

    SplitDO selectByPrimaryKey(String id);

    int update(SplitDO record);

    List<SplitDO> findByIds(@Param("ids") List<String> ids);

    List<SplitDO> list(SplitVO condition);

    List<SplitDO> exportList(SplitVO condition);

    int listCount(SplitVO condition);

    int updateDel(@Param("ids") List<String> ids);

    int findForDeleteByIds(@Param("ids") List<String> ids);

    SplitDO selectBySplitOrder(@Param("splitOrder")String splitOrder, @Param("orgId")String orgId);

    int checkForSource(@Param("splitOrder")String splitOrder, @Param("barcode")String barcode, @Param("orgId")String orgId);

    int checkForSplit(@Param("splitOrder")String splitOrder, @Param("barcode")String barcode, @Param("orgId")String orgId);
}